Optimal. Leaf size=66 \[ \frac {\tanh ^{-1}\left (\frac {\sqrt {a \cos ^2(e+f x)}}{\sqrt {a}}\right )}{2 \sqrt {a} f}-\frac {\csc ^2(e+f x) \sqrt {a \cos ^2(e+f x)}}{2 a f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {3176, 3205, 16, 47, 63, 206} \[ \frac {\tanh ^{-1}\left (\frac {\sqrt {a \cos ^2(e+f x)}}{\sqrt {a}}\right )}{2 \sqrt {a} f}-\frac {\csc ^2(e+f x) \sqrt {a \cos ^2(e+f x)}}{2 a f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 16
Rule 47
Rule 63
Rule 206
Rule 3176
Rule 3205
Rubi steps
\begin {align*} \int \frac {\cot ^3(e+f x)}{\sqrt {a-a \sin ^2(e+f x)}} \, dx &=\int \frac {\cot ^3(e+f x)}{\sqrt {a \cos ^2(e+f x)}} \, dx\\ &=-\frac {\operatorname {Subst}\left (\int \frac {x}{(1-x)^2 \sqrt {a x}} \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {\sqrt {a x}}{(1-x)^2} \, dx,x,\cos ^2(e+f x)\right )}{2 a f}\\ &=-\frac {\sqrt {a \cos ^2(e+f x)} \csc ^2(e+f x)}{2 a f}+\frac {\operatorname {Subst}\left (\int \frac {1}{(1-x) \sqrt {a x}} \, dx,x,\cos ^2(e+f x)\right )}{4 f}\\ &=-\frac {\sqrt {a \cos ^2(e+f x)} \csc ^2(e+f x)}{2 a f}+\frac {\operatorname {Subst}\left (\int \frac {1}{1-\frac {x^2}{a}} \, dx,x,\sqrt {a \cos ^2(e+f x)}\right )}{2 a f}\\ &=\frac {\tanh ^{-1}\left (\frac {\sqrt {a \cos ^2(e+f x)}}{\sqrt {a}}\right )}{2 \sqrt {a} f}-\frac {\sqrt {a \cos ^2(e+f x)} \csc ^2(e+f x)}{2 a f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.17, size = 80, normalized size = 1.21 \[ \frac {\cos (e+f x) \left (-\csc ^2\left (\frac {1}{2} (e+f x)\right )+\sec ^2\left (\frac {1}{2} (e+f x)\right )-4 \log \left (\sin \left (\frac {1}{2} (e+f x)\right )\right )+4 \log \left (\cos \left (\frac {1}{2} (e+f x)\right )\right )\right )}{8 f \sqrt {a \cos ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 79, normalized size = 1.20 \[ -\frac {\sqrt {a \cos \left (f x + e\right )^{2}} {\left ({\left (\cos \left (f x + e\right )^{2} - 1\right )} \log \left (-\frac {\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1}\right ) - 2 \, \cos \left (f x + e\right )\right )}}{4 \, {\left (a f \cos \left (f x + e\right )^{3} - a f \cos \left (f x + e\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.72, size = 69, normalized size = 1.05 \[ \frac {\ln \left (\frac {2 \sqrt {a}\, \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )}+2 a}{\sin \left (f x +e \right )}\right )}{2 \sqrt {a}\, f}-\frac {\sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )}}{2 f a \sin \left (f x +e \right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.41, size = 81, normalized size = 1.23 \[ \frac {\frac {\log \left (\frac {2 \, \sqrt {-a \sin \left (f x + e\right )^{2} + a} \sqrt {a}}{{\left | \sin \left (f x + e\right ) \right |}} + \frac {2 \, a}{{\left | \sin \left (f x + e\right ) \right |}}\right )}{\sqrt {a}} - \frac {\sqrt {-a \sin \left (f x + e\right )^{2} + a}}{a \sin \left (f x + e\right )^{2}}}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {{\mathrm {cot}\left (e+f\,x\right )}^3}{\sqrt {a-a\,{\sin \left (e+f\,x\right )}^2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cot ^{3}{\left (e + f x \right )}}{\sqrt {- a \left (\sin {\left (e + f x \right )} - 1\right ) \left (\sin {\left (e + f x \right )} + 1\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________